//
//  LAArrowPolylineRender.h
//  2bulu-NewAssistant
//
//  Created by Kent Peifeng Ke on 2/6/15.
//  Copyright (c) 2015 È≠èÊñ∞Êù∞. All rights reserved.
//
//#warning exist use new
#import <MapKit/MapKit.h>
#import <MapBasics/LAGGeometry.h>
#pragma pak(1)
typedef struct {
    float r; //red
    float g; //green
    float b; //blue
    float a; //alpha
}GradientsColorCompnent;
#pragma pak()


@interface LAArrowPolylineRender:MKPolylineRenderer


-(instancetype)initWithPolyline:(MKPolyline *)polyline andPointsColors:(GradientsColorCompnent *)colors colorCount:(NSUInteger)count;

@property (nonatomic,readonly) GradientsColorCompnent *pointsColors;//polyLine的着色值数组指针首地址
@property (nonatomic,readonly) NSUInteger colorCount;//polyLine的着色值数组长度
@property (nonatomic) bool reverseArrow;
//重新设定的话，需要调用 -setNeedsDisplay方法才生效 
-(void)setPointsColors:(GradientsColorCompnent *)colors count:(NSUInteger)count;
@property (nonatomic,copy) NSString *startPointMarkString;//标记起点字符
@property (nonatomic,copy) NSString *endPointMarkString;//标记终点字符
#if TARGET_OS_IPHONE
@property (nonatomic,copy) UIFont *markStringFont;
#else
@property (nonatomic,copy) NSFont *markStringFont;
#endif

//在绘制渐变轨迹线时，轨迹点之间连线的颜色过渡，是否平滑过渡，还是生硬过渡
@property (nonatomic) BOOL smoothColorJoin;

@end



